C++ keywords

From Cppreference

< cpp
Jump to: navigation, search

This is a list of reserved keywords in C++. Since they are used by the language, these keywords are not available for re-definition (or overloading).

and
and_eq
alignas (2)
alignof (2)
asm
auto(1)
bitand
bitor
bool
break
case
catch
char
char16_t(2)
char32_t(2)
class
compl
const
constexpr(2)
const_cast
continue

decltype(2)
default(1)
delete(1)
double
dynamic_cast
else
enum
explicit (todo)
export
extern (todo)
false
float
for
friend
goto
if
inline
int
long
mutable
namespace

new
noexcept(2)
not
not_eq
nullptr (2)
operator
or
or_eq
private
protected
public
register
reinterpret_cast
return
short
signed
sizeof
static
static_assert(2)
static_cast
struct

switch
template
this
thread_local(2)
throw
true
try
typedef
typeid
typename
union
unsigned
using(1)
virtual
void
volatile
wchar_t
while
xor
xor_eq

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox
In other languages